<div class="widget" style="display:none;">
</div>

<?php $recommend_article_list = get_article_by_ids(site_template_cache('recommend_article')); ?>
<?php if($recommend_article_list): ?>
<div class="widget widget_ui_posts">
    <h3 class="widget_tit">编辑推荐</h3>
    <ul>
        <?php foreach($recommend_article_list as $vo): ?>
        <li>
        <a href="/article/{$vo.id}">
            <span class="thumbnail"><img data-src="{$vo.cover|imageUrl=75,58}" class="thumb" alt="{$vo.title}" src="" style="display: block;"></span>
            <span class="text">{$vo.title}</span>
            <span class="muted">{$vo.publishtime|dateFormat|substr=0,10}</span>
            <span class="muted">{$vo.author}</span>
        </a>
        </li>
        <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>

<?php $hot_tags = get_site_tags_by_ids(site_template_cache('hot_tags')); ?>
<?php if($hot_tags): ?>
<div class="widget widget_ui_tags affix-top" style="top: 0px;">
    <h3 class="widget_tit">热门标签</h3>
    <div class="items">
        <?php foreach($hot_tags as $vo): ?>
        <a href="/tag/{$vo.id}">{$vo.nickname} ({$vo.num})</a>
        <?php endforeach; ?>
    </div>
</div>
<?php endif; ?>
